﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Dainfo.Master" CodeBehind="CadastroDeProdutos.aspx.vb" Inherits="Dainfo.ControleEstoque.Web.CadastroDeProdutos" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style2
    {
        width: 52px;
    }
    .style3
    {
        width: 261px;
    }
    
    
    
  .frameText
{
      width:100px;
      height:100px;
      overflow:auto;
      float:left;
      background-color:#ffffff;
      border-style:solid;
      border-width:2px;
      border-color:Gray;
      font-family:Helvetica;
      line-height:normal;
}
</style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderTituloPagina" runat="server">
    <span class="tituloPagina">Cadastro de produtos</span>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPrincipal" runat="server">



    <table style="width:100%;">
    <tr>
        <td class="style3">
            Descrição:*</td>
        <td>
            <asp:TextBox ID="txtDescricao" runat="server" Width="323px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvDescricao" runat="server" 
                ControlToValidate="txtDescricao" ErrorMessage="Descrição obrigatório!"></asp:RequiredFieldValidator>
        </td>
        <td>
            </td>
    </tr>
    <tr>
        <td class="style3">
            Valor de Compra:</td>
        <td>
            <asp:TextBox ID="txtValorCompra" runat="server" Width="169px" Height="22px"></asp:TextBox>
            <cc1:MaskedEditExtender ID="txtValorCompra_MaskedEditExtender" runat="server" 
                AutoComplete="False" CultureAMPMPlaceholder="" 
                CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
                CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                Mask="9,999.99" MaskType="Number" TargetControlID="txtValorCompra" 
                ClearMaskOnLostFocus="False" DisplayMoney="Left">
            </cc1:MaskedEditExtender>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style3">
            Valor de Venda:</td>
        <td>
            <asp:TextBox ID="txtValorVenda" runat="server" Width="167px"></asp:TextBox>
            <cc1:MaskedEditExtender ID="txtValorVenda_MaskedEditExtender" runat="server" 
                AutoComplete="False" ClearMaskOnLostFocus="False" CultureAMPMPlaceholder="" 
                CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
                CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                CultureThousandsPlaceholder="" CultureTimePlaceholder="" DisplayMoney="Left" 
                Enabled="True" Mask="9,999.99" MaskType="Number" 
                TargetControlID="txtValorVenda">
            </cc1:MaskedEditExtender>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style3">
            Grupo:</td>
        <td>
            <asp:DropDownList ID="ddlGrupo" runat="server" DataSourceID="SqlDataSource1" 
                DataTextField="Descricao" DataValueField="CodGrupo">
                <asp:ListItem>Super Info</asp:ListItem>
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:DainfoDBConnectionString %>" 
                SelectCommand="SELECT * FROM [Grupo]"></asp:SqlDataSource>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style3">
            Marca:</td>
        <td>
            <asp:DropDownList ID="ddlMarca" runat="server" DataSourceID="SqlDataSource2" 
                DataTextField="Descricao" DataValueField="CodMarca">
                <asp:ListItem>Super Info</asp:ListItem>
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                ConnectionString="<%$ ConnectionStrings:DainfoDBConnectionString %>" 
                SelectCommand="SELECT * FROM [Marca]"></asp:SqlDataSource>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style3">
            Quantidade:</td>
        <td>
            <asp:TextBox ID="txtQuantidade" runat="server" Width="167px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtQuantidade" Display="Dynamic" ErrorMessage="*">*</asp:RequiredFieldValidator>
            <asp:RangeValidator ID="RangeValidator1" runat="server" 
                ControlToValidate="txtQuantidade" Display="Dynamic" 
                ErrorMessage="Somente número" MaximumValue="9999" MinimumValue="0" 
                Type="Integer">Somente número</asp:RangeValidator>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style3">
            Observações:</td>
        <td>
            <asp:TextBox ID="txtObs" runat="server" Width="273px" Height="55px"></asp:TextBox>
            </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style3">
            <asp:LinkButton ID="LinkButton1" runat="server">Editar Visualização na Loja OnLine:</asp:LinkButton>
            <cc1:ModalPopupExtender ID="LinkButton1_ModalPopupExtender" runat="server" 
                DynamicServicePath="" Enabled="True" OkControlID="btnOKEditor" 
                PopupControlID="pnlEditor" TargetControlID="LinkButton1" 
                BackgroundCssClass="backgroundModal" Y="50" RepositionMode="None">
            </cc1:ModalPopupExtender>
            <cc1:AnimationExtender ID="LinkButton1_AnimationExtender" runat="server" 
                Enabled="True" TargetControlID="LinkButton1">
                <Animations>
                    <OnClick>
                      <Parallel AnimationTarget="pnlEditor" 
                        Duration=".3" Fps="25">
                        <FadeIn />
                      </Parallel>                    
                    </OnClick>
                </Animations>
            </cc1:AnimationExtender>
        </td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style3">
            <em>*Campos Obrigatórios!</em></td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style3">
                        <asp:Button ID="btnSalvar" runat="server" Text="Salvar" Width="113px" />
                    </td>
        <td>
                        <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" Width="113px" 
                            CausesValidation="False" PostBackUrl="~/Home.aspx" />
                    </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style3">
            <table style="width:100%;">
                <tr>
                    <td class="style2">
                        &nbsp;</td>
                </tr>
            </table>
        </td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
</table>



    <br />
    <br />
    <asp:Panel ID="pnlEditor" runat="server" Height="440px">
    <table>
        <tr>
        <td>
            Use o editor de texto ou o editor html. Você tabém pode colocar um conteudo copiado de um site. ex: Mercado Livre.
        </td>
        </tr>
                <tr>
        <td>
        <cc2:Editor ID="Editor1" runat="server" Height="440px" 
                TopToolbarPreservePlace="True" />
        </td>
        </tr>
    </table>
        
        <br />
        <asp:Button ID="btnOkEditor" runat="server" Text="Salvar" />
        <asp:Button ID="btnCancelEditor" runat="server" Text="Cancelar" />
    </asp:Panel>



</asp:Content>
